import os


def read_conf():
    '''
    读取配置
    :return:
    '''
    file = open('file6', 'r+',encoding='utf-8')
    text_info = file.read()
    print(text_info)
    my_dict = eval(text_info)   # eval  将字符串当成有效表达式来求值并返回计算结果  不要用eval执行前端发来的任何数据
    print(my_dict)
    print(type(my_dict))
    file.close()

if __name__ == '__main__':
    # read_conf()
    os.system('ls')